<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
<!--给搜索后的页面用的分页，需要加&符合而不是？，会404-->
<div th:fragment="pageAdminNav_search(pageInfo)">
    <nav th:if="${search}eq'true'" aria-label="Page navigation" id="search">
        <ul class="pagination justify-content-center">
            <li class="page-item" th:if="${pageInfo.hasPreviousPage}" >
                <a class="page-link" th:href="@{'&page='+${pageInfo.prePage}}" >上一页</a>
            </li>
            <li th:class="${nav==pageInfo.pageNum}?'page-item active':'page-item'" th:each="nav : ${pageInfo.navigatepageNums}">
                <a class="page-link" th:href="@{'&page='+${nav}}" th:text="${nav}"></a> </li>

            <li class="page-item" th:if="${pageInfo.hasNextPage}">
                <a class="page-link" th:href="@{'&page='+${pageInfo.nextPage}}">下一页</a>
            </li>

        </ul>
    </nav>

</div>

</body>
</html>